<?php

const MAX_COUNT = 10;
$total = rand(5,MAX_COUNT);
$result["total"] =$total;
$result["footer"] =array();
$data = array();
for($i = 0 ;$i<$total;$i++){
    $single["coverImage"]="img/demo_avatar.jpg";
    $single["created"]="2017-01-10 17:07:46";
    $single["createrId"]=1;
    $single["createrName"]="admin";
    $single["duration"]=3600;
    $single["fileName"]="顶部十字完成";
    $single["filePath"]="/upload/material/video/20170118/1484710633306076634.mp4";
    $single["resourceId"]="623a4fc5-f074-43dd-8bbf-7c782180f34e$i";
    $single["modified"]="";
    $single["modifierId"]="";
    $single["modifierName"]="";
    $single["remark"]="我说我是摘要，你信嘛";
    $single["title"]="沃特么真是标题";
    $data[]=$single;
}

$result["rows"] = $data;

header('Content-type: application/json');
echo  json_encode($result);
